import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueResource from 'vue-resource'
import '../static/reset.css'
import './registerServiceWorker'
import 'common/less/index.less'
import moment from "moment";

Vue.config.productionTip = false;

Vue.use(router);
Vue.use(VueResource);

Vue.filter('dataFormat', function (dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
  return moment(dataStr).format(pattern);
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
